export interface ListParamsType {
    category1Id?: string
    category2Id?: string
    category3Id?: string
    categoryName?: string
    keyword?: string
    props?: string[]
    trademark?: string
    order?: string
    pageNo?: number
    pageSize?: number
}

export interface LoginDataType {
    phone: string
    password: string
}

export interface RegisterDataType extends LoginDataType {
    code: string
}

export interface OrderDetailType {
    id?: string
    orderId?: string
    skuId: number
    skuName: string
    imgUrl: string
    orderPrice: number
    skuNum: number
    hasStock?: string
    activityRule: null
    couponInfoList: null
    createTime: null
    refundStatus: string
    refundStatusString: string
    sourceId: number
    sourceType: string
    splitActivityAmount: null
    splitCouponAmount: null
    splitTotalAmount: null
}

export interface SubmitOrderDataType {
    consignee: string
    consigneeTel: string
    deliveryAddress: string
    paymentWay: string
    orderComment: string
    orderDetailList: OrderDetailType[]
}

interface RecordsType {
    id: number
    consignee: string
    consigneeTel: string
    totalAmount: number
    orderStatus: string
    userId: number
    paymentWay: string
    deliveryAddress: string
    orderComment: string
    outTradeNo: string
    tradeBody: string
    createTime: string
    expireTime: string
    processStatus: string
    trackingNo: null
    parentOrderId: null
    imgUrl: null
    orderDetailList: OrderDetailType[]
    orderStatusName: string
    wareId: null
}

export interface MyOrderType {
    records: RecordsType[]
    total: number
    size: number
    current: number
    pages: number
}
